package com.wyw.design.model.learning.behavioral.mediator;

/**
 * @Title   抽象中介者角色
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/18 10:45
 * Update History:
 * Author        Time            Content
 */
public abstract class Mediator {
    // 中介者要协调的同事角色
    protected Colleague1 c1;
    protected Colleague2 c2;

    // 中介者模式的业务逻辑抽象
    abstract void doSomething();

    public Colleague1 getC1() {
        return c1;
    }

    public void setC1(Colleague1 c1) {
        this.c1 = c1;
    }

    public Colleague2 getC2() {
        return c2;
    }

    public void setC2(Colleague2 c2) {
        this.c2 = c2;
    }
}
